Optimal. Leaf size=106 \[ -\frac {19 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d}-\frac {9 a^3 \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a^2 \cot (c+d x) \csc (c+d x) \sqrt {a+a \sin (c+d x)}}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2841, 3059,
2852, 212} \begin {gather*} -\frac {19 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)+a}}\right )}{4 d}-\frac {9 a^3 \cot (c+d x)}{4 d \sqrt {a \sin (c+d x)+a}}-\frac {a^2 \cot (c+d x) \csc (c+d x) \sqrt {a \sin (c+d x)+a}}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2841
Rule 2852
Rule 3059
Rubi steps
\begin {align*} \int \csc ^3(c+d x) (a+a \sin (c+d x))^{5/2} \, dx &=-\frac {a^2 \cot (c+d x) \csc (c+d x) \sqrt {a+a \sin (c+d x)}}{2 d}-\frac {1}{2} a \int \csc ^2(c+d x) \left (-\frac {9 a}{2}-\frac {5}{2} a \sin (c+d x)\right ) \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {9 a^3 \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a^2 \cot (c+d x) \csc (c+d x) \sqrt {a+a \sin (c+d x)}}{2 d}+\frac {1}{8} \left (19 a^2\right ) \int \csc (c+d x) \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {9 a^3 \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a^2 \cot (c+d x) \csc (c+d x) \sqrt {a+a \sin (c+d x)}}{2 d}-\frac {\left (19 a^3\right ) \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d}\\ &=-\frac {19 a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d}-\frac {9 a^3 \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a^2 \cot (c+d x) \csc (c+d x) \sqrt {a+a \sin (c+d x)}}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(252\) vs. \(2(106)=212\).
time = 0.51, size = 252, normalized size = 2.38 \begin {gather*} \frac {a^2 \csc ^7\left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sin (c+d x))} \left (14 \cos \left (\frac {1}{2} (c+d x)\right )-22 \cos \left (\frac {3}{2} (c+d x)\right )-19 \log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+19 \cos (2 (c+d x)) \log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+19 \log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )-19 \cos (2 (c+d x)) \log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )-14 \sin \left (\frac {1}{2} (c+d x)\right )-22 \sin \left (\frac {3}{2} (c+d x)\right )\right )}{4 d \left (1+\cot \left (\frac {1}{2} (c+d x)\right )\right ) \left (\csc ^2\left (\frac {1}{4} (c+d x)\right )-\sec ^2\left (\frac {1}{4} (c+d x)\right )\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.05, size = 126, normalized size = 1.19
method | result | size |
default | \(-\frac {\left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \sqrt {a}\, \left (19 \arctanh \left (\frac {\sqrt {-a \left (\sin \left (d x +c \right )-1\right )}}{\sqrt {a}}\right ) \left (\sin ^{2}\left (d x +c \right )\right ) a^{2}+13 \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, a^{\frac {3}{2}}-11 \left (-a \left (\sin \left (d x +c \right )-1\right )\right )^{\frac {3}{2}} \sqrt {a}\right )}{4 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(126\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 359 vs.
\(2 (90) = 180\).
time = 0.34, size = 359, normalized size = 3.39 \begin {gather*} \frac {19 \, {\left (a^{2} \cos \left (d x + c\right )^{3} + a^{2} \cos \left (d x + c\right )^{2} - a^{2} \cos \left (d x + c\right ) - a^{2} + {\left (a^{2} \cos \left (d x + c\right )^{2} - a^{2}\right )} \sin \left (d x + c\right )\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) + 4 \, {\left (11 \, a^{2} \cos \left (d x + c\right )^{2} + 2 \, a^{2} \cos \left (d x + c\right ) - 9 \, a^{2} + {\left (11 \, a^{2} \cos \left (d x + c\right ) + 9 \, a^{2}\right )} \sin \left (d x + c\right )\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{16 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2} - d \cos \left (d x + c\right ) + {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right ) - d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 164, normalized size = 1.55 \begin {gather*} -\frac {\sqrt {2} {\left (19 \, \sqrt {2} a^{2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + \frac {4 \, {\left (22 \, a^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 13 \, a^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (2 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{2}}\right )} \sqrt {a}}{16 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{5/2}}{{\sin \left (c+d\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________